import React from 'react';
import BaseTable from '@/components/BaseTable';

const basicTable = () => {
  const dataSource = [];
  for (let i = 1; i < 30; i++) {
    dataSource.push({
      key: String(i),
      name: `胡彦斌${i}`,
      age: i,
      address: `西湖区湖底公园${i}号`,
    });
  }
  const columns = [
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '年龄',
      dataIndex: 'age',
      key: 'age',
    },
    {
      title: '住址',
      dataIndex: 'address',
      key: 'address',
    },
  ];

  return <><BaseTable dataSource={dataSource} columns={columns} /></>;
};

export default basicTable;
